package org.smart4j.framework;

import org.smart4j.framework.helper.*;
import org.smart4j.framework.util.ClassUtil;

/**
 * 为了让类加载更集中才写了个HelperLoader
 * Created by Administrator on 2016/9/20.
 * AopHelper 要在iochelper 之前加载
 * 因为通过AOPHELPER获取代理对象,然后才能通过IOCHELPER进行依赖注入
 */
public final class HelperLoader {
    public static void init(){

        Class<?>[] classList = {
                ClassHelper.class, BeanHelper.class, AopHelper.class,IocHelper.class, ControllerHelper.class
        };
        for(Class<?> cls : classList){
            ClassUtil.loadClass(cls.getName(),true);
        }
//        new AopHelper();
//        new IocHelper();// 访问时没加载到ioc特意初始化一下
    }
}
